<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>后台主页 - XzcBlogTemplate后台管理</title>
    <link rel="stylesheet" href="static/layui/css/layui.css">
    <link rel="stylesheet" href="static/admin/css/main.css">
</head>
<body>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">XzcBlogTemplate 后台管理</div>
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="./main.html">后台首页</a></li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <img src="static/images/user01.png" class="layui-nav-img">
                <span id="username"></span>
            </li>
            <li class="layui-nav-item"><a href="javascript:signOut();" onclick="layer.msg('退出登陆成功...');">退出登陆</a></li>
        </ul>
    </div>
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item">
                    <a class="" href="javascript:;">博文系统</a>
                    <dl class="layui-nav-child">
                        <dd><a type="inner" href="bloglist.html">文章管理</a></dd>
                        <dd><a type="inner" href="blogadd.html">编写文章</a></dd>
                        <dd><a type="out" href="index.html">去站点</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>
    <div class="layui-body" style="overflow: hidden;">
        <iframe src="bloglist.html" id="iframe-body"></iframe>
    </div>
    <div class="layui-footer" id="footer">
    </div>
</div>
</body>
<script src="static/js/jquery-1.12.4.min.js"></script>
<script src="static/layui/layui.all.js"></script>
<script src="static/admin/javascript/main.js"></script>
<script>
    function signOut() {
        window.location = 'login.html';
    }

    $(document).ready(function () {
        var username = sessionStorage.getItem('username');
        if (username == null) {
            $("#username").text("未登录");
        } else {
            $("#username").text(username);

        }
    })

</script>
</html>